package com.zls.reminder;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.util.Log;

public class ReminderReceiver extends BroadcastReceiver {

	protected static final String ALARM_CLOCK = "com.zls.reminder.ALARM_CLOCK";
	private String TAG = "larson";

	@Override
	public void onReceive(Context context, Intent intent) {
		int musicId = intent.getIntExtra("musicId",1);
		Log.v(TAG, musicId+"");
		MediaPlayer mediaPlayer = MediaPlayer.create(context, musicId);
		mediaPlayer.start();
	}

}
